﻿function Remove-TSMClientSchedule {
    <#
        .SYNOPSIS
            Remove TSM client schedule
                    
        .DESCRIPTION
            The Remove-TSMClientSchedule removes a TSM client schedule
        
        .EXAMPLE
            Remove-TSMClientSchedule domain1 schedule1

        .NOTES
            Contributors:  David Seibel
            Last Revision Date: 09/15/2015
    #>
    [CmdletBinding()]
    Param(
        [Parameter(Position = 0, Mandatory = $true)]
        $Domain,
        
        [Parameter(Position = 1, Mandatory = $true)]
        $Schedule
    )

    $command = "Delete Schedule $Domain $Schedule Type=Client" 

    $output = Invoke-TSMCommand -Command $command

    return $output
}